please schedule adding a ldap_search_escapestring function.
Submit a feature request through OpenLDAP's ITS.
Ciao, Michael.