Rename encode decode to read write payload