fix encode
fix encode