def _quote(text):
    """
    Quote the given string so ``_split_quoted`` will not split it up.

    :param str text: The string to quote:

    :return: A str string representing ``text`` as protected from
        splitting.
    """
    return (
        '"' +
        text.replace("\\", "\\\\").replace('"', '\\"') +
        '"'
    )