fix encode man