This should be `ESCAPED_BRANCH=${BRANCH/\/&/\\\&}`.