def quote(a_string):
    return str(
        NSString.stringWithString_(
            a_string).stringByAddingPercentEscapesUsingEncoding_(
                NSUTF8StringEncoding))
Replacement for urllib.quote that handles Unicode strings
dataset/ETHPy150Open munki/munki/code/apps/Managed Software Center/Managed Software Center/MunkiItems.py/quote