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.