LDAP: Fixed problem with special chars in LDAP queries when having contactgroup sync plugin enabled