Ensure ldap characters are properly escaped