Fix ext-mime-type for non-lowercase extensions

Currently ext-mime-type doesn't recognise file extensions in upper case, which can be a problem for user-generated content.