def _shell_quote(string):
    """
    Create a single-quoted string for a shell

    :param string:
        A unicode string to quote

    :return:
        A unicode string quoted for a shell
    """

    return "'" + string.replace("'", "'\\''") + "'"