replace unicode chars with escaped codepoints