remove extra wildcards from the ldap search filter