CB-2185: Fixing getMimeType to get the mimetype of the file if it is upper-case