Small encoding fix