quoteReplacement() for js literals (tried StringEscapeUtils.escapeJavaScript but it does the wrong thing)