encoding fix for st2/3