fun CharSequence.toBytes(charset: Charset = Charsets.UTF_8): Bytes
Extension function that converts (encodes) a CharSequence to an instance of Bytes using the given charset.