encode/decode rename to codec.go