Fix for missing escape and minor enhancement

More details can be found here
http://sourceforge.net/apps/trac/adldap/ticket/42
http://sourceforge.net/apps/trac/adldap/ticket/44