Clean unused mime parameter to convert().

And add support for invoking overrideMimeType().