replace branches with '/' to '_'