document format options
escape illegal js but valid json unicode characters - fixes #247