fix type resolution when extension is uppercased

File like xxx.MP3 returns audio/mp3 while they use to return audio/MP3