Escape all special characters, not just the first

This was breaking since .replace works differently in JavaScript & Java.
In JS, it only replaces the first match, but it replaces all matches
(what we want) in Java.