toByteArrayKey

Converts the current string into a ByteArrayKey by encoding the string into a UTF-8 byte array.

Return

A ByteArrayKey containing the UTF-8 bytes of the string.