rest: add escape to LdapHash