[CB-2913] escaped replace string so no characters are interpreted as sed flags or regex