chardet param fix for script