public static String sanitizeSearchFilter(final String value) {
        return sanitizeSearchFilter(value, false);
    }
Escapes any special chars (RFC 4515) from a string representing
a search filter assertion value.

@param value The input string.

@return A assertion value string ready for insertion into a 
        search filter string.
xmppserver/src/main/java/org/jivesoftware/openfire/ldap/LdapManager.java