changed the signatures of the message encoders and decoders
fixed UnpooledDirectByteBuf bugs