need to specify encoding when calling hash.digest

used to be

    var digest = ctx.digest();

changed to

    var digest = ctx.digest('binary');

apparently at some point node.js switched to returning the buffer when
the encoding what not specified.

Thanks to @vvilhonen for reporting the bug.

Closes Issue #1
Merge branch 'bug/issue1'