Rename encode decode to read write payload

yes that one is a mistake it looks like it should be ``write_symbol(...)`` according to the new convention.