Update the script add encoding config