If the user provides a known mimetype which doesn't actually match the file as far as we're concerned, warn and fallback on extension rather than blow up. This comes up when a user installs Excel on Windows: it associates CSV files with itself and sets their mime type to application/vnd.ms-excel, which is not correct and leads to us trying to load a CSV with xlrd (an excel-parsing library). Fixes #9779