• input {string} The text to encode. Default: an empty string.
    • Returns: {Uint8Array}

    UTF-8 encodes the input string and returns a Uint8Array containing the encoded bytes.