I looked at escapeSpecialChars

`.replace(/\\'/g, "\\'");` is different from `.replace(/'/g, "\\\\'")`

```
> "we'll".replace(/'/g, "\\\\'")
"we\\'ll"
> "we'll".replace(/\\'/g, "\\'");
"we'll"
````