use encodeURICompont to fix the password reset bug