--- a/src/mediaserver/cdplugins/pycommon/upmplgutils.py
+++ b/src/mediaserver/cdplugins/pycommon/upmplgutils.py
@@ -159,4 +159,5 @@
 
 
 def uplog(s):
-    print("%s: %s" % (g_idprefix, s), file=sys.stderr)
+    print(("%s: %s" % (g_idprefix, s)).encode('utf-8'), file=sys.stderr)
+