Fixed issue where the top level exception handler was throwing an exception.
Fixed a few spots where string/locale was being used instead of string/utf-8