Data.content is encoded with transcripts encoding. Replaced data.text.encode('utf-8') with data.content.
Now only utf-8 encoded transcripts are supported.