def escape_etcd(path):
    """
    Escape a string to make it safe for use as a path in etcd.
    See https://github.com/coreos/etcd/issues/669
    :param path: The path to escape
    :return: The escaped path.
    """
    return path.replace('/', '-')