base64url pulled from mochiweb