def METHOD_NAME(preset, values):
    """
    Takes a configuration, eg:
        [("select_mouse", 'LEFT'), ("rmb_action", 'TWEAK')]
    And returns a filename compatible path:
    """
    from urllib.parse import quote
    if not values:
        return quote(preset)
    return quote(
        preset + "_" + ".".join([
            "-".join((str(key), str(val)))
            for key, val in values
        ]),
        # Needed so forward slashes aren't included in the resulting name.
        safe="",
    )