def _escape_specification(specification):
    # type: (str) -> str
    """
    Escapes the interface string: replaces slashes '/' by '%2F'

    :param specification: Specification name
    :return: The escaped name
    """
    return specification.replace("/", "%2F")