Remove `mimetypes` dependency