New method, mimetype to extension.

This is an acceptable counterpart to the extension to mimetype function.