Set unix newlines.
Encode the ldap filter as utf8.

This should be fine for ldapV3, since utf8 is the default.