Added try-catch in fix_utf8_string