Fix codification problem. htmlentities is ok when printing vars, not if the var will be store in the database/ldap and the validation function where was the call is invoked before storing data