Make sure LDAP filter strings are properly escaped.
Merge pull request #13139 from cro/ldap_metacharacters2

Make sure LDAP filter strings are properly escaped.