def _stringify(item):
    """
    Private funtion which wraps all items in quotes to protect from paths
    being broken up. It will also unpack lists into strings

    :param item: Item to stringify.

    :return: string
    """
    if isinstance(item, (list, tuple)):
        return '"' + '" "'.join(item) + '"'

    if isinstance(item, str) and len(item) == 0:
        return None

    return '"%s"' % item