--- a/printrun-src/printrun/power/osx.py Tue Jan 19 20:45:09 2021 +0100 +++ b/printrun-src/printrun/power/osx.py Wed Jan 20 10:15:13 2021 +0100 @@ -41,6 +41,7 @@ encoding = CoreFoundation.kCFStringEncodingASCII except AttributeError: encoding = 0x600 + string = string.encode('ascii') cfstring = CoreFoundation.CFStringCreateWithCString(None, string, encoding) return objc.pyobjc_id(cfstring.nsstring())