[NEXUS-6881] Escape values in LDAP filter

Cherry picked from 2.11 1580655598c0cf05b16d9be338c9d7f12859016a