TPS auth special characters fix.
Ticket #1636.
Smartcard token enroll/format fails when the ldap user has special characters in
userid or password
Tested with both esc and tpsclient. The problem was when using a real card because the
client uri encodes
the authentication creds and the server needs to decode them.