handle git branch names containing some common special characters