make the HTML output of the REST servlet JSON-compatible - part 2

Small enhancement for https://github.com/structr/structr/pull/292

In that PR I forgot that strings can contain backslashes and quotation marks - both have to be escaped so that the output is proper JSON