Sanitize values: remove repeated and empty ones

Values are uniq'ed() and empty elements are just removed. This solves some
LDAP issues with them