Base64 url encode a string instead of internal base64_encode function. Fixes #5.