README code example updates

Note that this still won't work for copy/paste because `pre-serialize` and `post-deserialize` aren't defined anywhere. (I used `identity` when testing, not sure if this is right or will work.)