Update UTF-8 string check

Old check (in CharsetConverter) is outdated and not valid anymore.
Added new check based on latest Unicode standard and replaced usage of the old check,