Encoder Ptr/Value fix.
Merge pull request #101 from 3d0c/encoder

Encoder Ptr/Value fix.