diff --git a/src/gui/views/treemodels/placemodel.py b/src/gui/views/treemodels/placemodel.py
index ef965c9fb..148dee75b 100644
--- a/src/gui/views/treemodels/placemodel.py
+++ b/src/gui/views/treemodels/placemodel.py
@@ -361,4 +361,6 @@ class PlaceTreeModel(PlaceBaseModel, TreeBaseModel):
return '%s' % cgi.escape(node.name)
else:
level = len(self.do_get_path(self.get_iter(node)).get_indices())
- return '%s' % cgi.escape(COUNTRYLEVELS['default'][level])
+ heading = '%s' % cgi.escape(COUNTRYLEVELS['default'][level])
+ # This causes a problem with Gtk3 unless we cast to str.
+ return str(heading)