fix TypeError

TypeError: decoding Unicode is not supported