Closes #3. Adds encoding interface support for Go 1.2