Encode file paths before sending them to CloudFront