Issue 3173 double escape rp

The RP name was being doubly escaped in several locations before the user is redirected to the primary. Since the RP name is escaped when it comes in in dialog.js, a second escaping is unnecessary.

Because the same code affects IdP names, I am now escaping the IdP name when it leaves user.js, where it comes into the system.

fixes #3173.