Fixed error with identity encoding.
Merge pull request #127 from jvelilla/master

Fixed error with identity encoding.