options encoding fix