Escape branch names.