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