fix S3 vs EC2 escaping differences