Create a new instance of TextEncoder.
Readonly
encodingAlways returns 'utf-8'.
Encode the given string and store the results in the given buffer.
an object describing the progress made in this call (code points read and bytes written).
the string to encode.
the buffer where the encoded string should be stored.
TextEncoder takes code points and returns UTF-8 bytes.