Centralize Unicode and utf8 utilities to utils.py
Merge branch 'use_utils_unicode_funcs' into mime_fixes