fixed #5 : save member with memberships, fix some encoding issue when reading from ldap