Support char::encode_utf16 in const scenarios.
#130659
Merged
char::encode_utf16 in const scenarios.
#130659