Correct cleanUnicode que tenia "bugs"

Bad function using a former global variable, noticed by Javier