base64 encode hash in URL

The hash needs to be base64 encoded to reliably get passed back.
*URLencode will not reliably pass back the hash.
Merge pull request #653 from mikepmtl/patch-3

base64 encode hash in URL