i think it's better to do add .decode('utf8', 'ignore')  on this line.