SignedToken: Use URL-safe encoding

If Gerrit's email verification token contains a '+' character, the
verification will fail.

To avoid this problem, modify the token generation and check methods
to use URL-safe encoding.

Bug: Issue 12424
Change-Id: Id71926f1231a57df0da7eecae6033c0d28f36eee
4 files changed