[KARAF-2476]Special characters are dropped when generating the LDAP the user and role filters

git-svn-id: https://svn.apache.org/repos/asf/karaf/branches/karaf-2.3.x@1524266 13f79535-47bb-0310-9956-ffa450edef68