Added base64url conversions to match spec
Changed indents to 4 spaces