Escape values in LDAP search filters

LDAP search filter strings need to have special characters escaped
in order to be valid. There were some places where filter strings
were constructed where the value was not escaped.

Change-Id: Ib7870bc92d3af9066bb15e863cac4abd06f00768
Related-Bug: #1302106
Merge "Escape values in LDAP search filters"