Fixed errors with node v0.10.26

Kept getting undefined errors with 0.10.26 due to Encoding changes in
underlying crypto library. Throws Error if we didn’t successfully
encrypt message. Added test file for checking library works.  Version
bump