Encoder Ptr/Value fix.

Just a fix.