Handle invalid UTF-8 by converting from current code page to UTF-8