SFR 457192 Illegal Route Header

When we encode a UserInfo, encode the username in the same way we decode
it.