Format branch names containing / properly