removal of the use of unistrn2 function: replace it with unistr2_to_str