change file extensions for correct MIME type