groovy

String.replaceAll(String, Closure) should quote the replacement string