Added instructions to encode/decode in README.md