maintian encoding when uploading to s3