diff --git a/convo.py b/convo.py
index 2b26625..028a161 100644
--- a/convo.py
+++ b/convo.py
@@ -249,7 +249,7 @@ class PesterText(QtGui.QTextEdit):
url = self.urls[movie].toString()
def stuff(mo):
return '' % (url, frame)
- html = re.sub(r'' % (url), stuff, str(self.toHtml()))
+ html = re.sub(r'' % (url), stuff, unicode(self.toHtml()))
self.setHtml(html)
self.setLineWrapColumnOrWidth(self.lineWrapColumnOrWidth())
self.verticalScrollBar().setSliderPosition(scrollPos)