make sure s3 key is properly URL encoded for keys with special characters