LDAP-263: Moved LdapEncoder to support package to break package tangle between query, filter and core.