core: Update docs for encode_utf8/encode_utf16