encodeUtf8

common
fun String.encodeUtf8(): ByteString

Returns a new byte string containing the UTF-8 bytes of this String.

fun String.encodeUtf8(): ByteString