Handle mime types correctly for files where the extension is capitalized