Fix for issue with converting text to UTF8.