Fix URL encoding on login request