proper encoding fix