toByteArrayCodec

Converts a StringCodec into a ByteArrayCodec by bridging through Kotlin's default string/byte array conversions.