--- wicd-1.7.2.4/wicd/misc.py 2012-05-01 05:20:09.000000000 +1000 +++ wicd-1.7.2.4/wicd/misc.py 2014-07-22 17:32:01.000000000 +1000 @@ -430,7 +430,9 @@ """ Sanitize property names to be used in config-files. """ allowed = string.ascii_letters + '_' + string.digits table = string.maketrans(allowed, ' ' * len(allowed)) - return s.translate(None, table) + # s is a dbus.String -- since we don't allow unicode property keys, + # make it simple. + return str(unicode(s).encode('utf-8','replace')).translate(None, table) def sanitize_escaped(s): """ Sanitize double-escaped unicode strings. """