moar encoding fix