Use base64 for hash digest.

Node <= v0.8 does not support utf8 encoding in digests.