Escape special characters in the branch name before creating or destroying the branch