LDAP group query encoding fix