Bugfix boolean is_url and casting of mimetype to string