PROTON-467: applied patch from Bozo Dragojevic for using thread local encoder/decoder inside MessageImpl