Make ldap_escape replacement in Ldap\Client class behave the same as ldap_escape in PHP 5.6.