encoding fix for 2/3 weirdness