try to fix encode