core: fix for mimetypes where 'image/jpeg' returns preferred extension '.jpe' (instead of '.jpg')