fix encoding/decoding
Merge pull request #17 from jay-hodgson/release-1

fix encoding/decoding