I am trying to convert a UTF-16 string to escaped UTF-8.
I cannot use iconv or any other libraries, nor use codecvt since its deprecated.
Can I have an example