Encoder that does the opposite of the chunked decoder, writing the byte length and then the bytes