added encode('asci', 'ignore') to prevent coding error at windows