another attempt at encoding fix