fix encode error

'utf8' codec can't decode byte 0x8b in position 1