diff --git a/core/views/expo.py b/core/views/expo.py
index 277cb7f..05e3642 100644
--- a/core/views/expo.py
+++ b/core/views/expo.py
@@ -344,10 +344,10 @@ def editexpopage(request, path):
             body = "### File not found ###\n"    + str(filepath)
             import sys
             import locale
-            body = body + "\nsys.getdefaultencoding() = " + sys.getdefaultencoding()
-            body = body + "\nsys.getfilesystemencoding() = " + sys.getfilesystemencoding()
-            body = body + "\nlocale.getdefaultlocale() = " + locale.getdefaultlocale()
-            body = body + "\nlocale.getpreferredencoding() = " + locale.getpreferredencoding()
+            body = body + "\nsys.getdefaultencoding() = " + str(sys.getdefaultencoding())
+            body = body + "\nsys.getfilesystemencoding() = " + str(sys.getfilesystemencoding())
+            body = body + "\nlocale.getdefaultlocale() = " + str(locale.getdefaultlocale())
+            body = body + "\nlocale.getpreferredencoding() = " + str(locale.getpreferredencoding())
             pageform = ExpoPageForm({"html": body, "title": "Missing"})
     return render(request, 'editexpopage.html', {'path': path, 'form': pageform, })