Prefer file extensions for mimetypes in some cases