Copy escape_bytes function from ldap3.

This is temporary only, required until new release of ldap3 that
includes this fixed function.

Change-Id: Iabca596cce873298579dc5771414255c723c1e67
Fix broken import.

Change-Id: Ia45beba49b7779c0505559fb0ae6b3c2f8fb2cf2