Fix case-sensitive filenames for S3 support.