encode

fun encode(buf: ByteBuf, text: String)
fun encode(buf: JagByteBuf, text: String)