core/text: Added UTF-16 escape coding/decoding methods