Added method to set the content encoding in S3 uploads.