def sanitize_branch_name(branch_name: str) -> str:
    """
    replace potentially problematic characters in provided string, a branch name

    e.g. copr says:
        Name must contain only letters, digits, underscores, dashes and dots.
    """
    # https://stackoverflow.com/questions/3411771/best-way-to-replace-multiple-characters-in-a-string
    offenders = "!@#$%^&*()+={[}]|\\'\":;<,>/?~`"
    for o in offenders:
        branch_name = branch_name.replace(o, "-")
    return branch_name