support publish messsage encoding
using the released version of MINA codec 3.0.0-M1