Fix file_extension mapping for upload to s3.