Added convert_to_unicode function that attempts to convert strings to
unicode given a formatting (utf-8 default)