Convert the mime type to lowercase without running into Turkish locale issue
Merge pull request #3662 from benmccann/mime-type-locale

Convert the mime type to lowercase without running into Turkish locale issue