encode directly to netty bytebufs