Use heap buffers for MessageToByteEncoders

Better add static constants like CR and LF so you eliminate two array accesses.