Rename encode decode to read write payload

I would add a small note on the motivation for this change and then group it under the same major tag.