Don't encode url unecessary twice
Don't encode url unecessary twice

The URL was previously encoded twice which leads to getting redirected to a 404 page when the password has been entered incorrect at least once.

Testplan:

- [ ] Opening `http://localhost/core/index.php?redirect_url=%2Fcore%2Findex.php%2Fsettings%2Fadmin` redirects to the admin page when providing the correct credentials
- [ ] Opening `http://localhost/core/index.php?redirect_url=%2Fcore%2Findex.php%2Fsettings%2Fadmin` redirects to the admin page when providing the invalid credentials and then providing valid ones.
- [ ] Logging in as admin then going to the admin page and clearing the cookies and refreshing will show the login and when repeating the above test steps you're redirected correctly.

Fixes https://github.com/owncloud/core/issues/9804

endsguy/server,owncloud/core,andreas-p/nextcloud-server,phil-davis/core,Ardinis/server,sharidas/core,xx621998xx/server,xx621998xx/server,michaelletzgus/nextcloud-server,IljaN/core,Ardinis/server,IljaN/core,cernbox/core,IljaN/core,cernbox/core,pollopolea/core,IljaN/core,nextcloud/server,lrytz/core,andreas-p/nextcloud-server,jbicha/server,cernbox/core,sharidas/core,IljaN/core,jbicha/server,nextcloud/server,bluelml/core,michaelletzgus/nextcloud-server,michaelletzgus/nextcloud-server,lrytz/core,nextcloud/server,jbicha/server,Ardinis/server,owncloud/core,pixelipo/server,bluelml/core,whitekiba/server,whitekiba/server,pmattern/server,andreas-p/nextcloud-server,pixelipo/server,andreas-p/nextcloud-server,pmattern/server,michaelletzgus/nextcloud-server,whitekiba/server,pixelipo/server,owncloud/core,endsguy/server,bluelml/core,Ardinis/server,whitekiba/server,xx621998xx/server,andreas-p/nextcloud-server,pixelipo/server,pmattern/server,whitekiba/server,Ardinis/server,jbicha/server,bluelml/core,pollopolea/core,sharidas/core,owncloud/core,pollopolea/core,endsguy/server,bluelml/core,xx621998xx/server,cernbox/core,xx621998xx/server,jbicha/server,owncloud/core,endsguy/server,pollopolea/core,sharidas/core,endsguy/server,lrytz/core,pixelipo/server,sharidas/core,pmattern/server,lrytz/core,pmattern/server,pollopolea/core,lrytz/core,nextcloud/server,cernbox/core