mime_type returns null if the extension is unknown.