Fix unencoded email address during login