Make Json string escape more efficient

By writing directly to Json output StringBuilder instead of creating new
one for each escaped string.
Merge pull request #636 from eulerfx/master

Make Json string escape more efficient