Fix scope encoding, parse email address in user profile.