[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/trunk@1524267 13f79535-47bb-0310-9956-ffa450edef68