Support encoding_type for S3 buckets