T2997 fix redirect broken by template encoding;

Summary: conf 5.1.2 performs anti-XSS encoding, work around that

Test Plan: authed a lot

Reviewers: ben, ashalabi, akgood, chester, david

Differential Revision: http://phab.duo/D1208