numchars needs to be calculated the same as the code above - and then call rtlUtf8ToUnicodeX