escape branch name that contains ( or ). e.g. origin/merge_xctests_migration_with_stage_(broken)