Reuse python-ldap filtering functions.

Also Py3 compatible.
Merge pull request #39 from rbarrois/fix_ldap_escape

Reuse python-ldap filtering functions.