fix mime type detection now that Utils->get_mime always defaults to DefaultMIME