[#1613] Allow to specify if direct buffers are prefered in ByteToMessageCodec