Basic working message encode/decode.