Change encode/decode to dump/load.

dump/load more rubyish.