Make Json string escape more efficient

By writing directly to Json output StringBuilder instead of creating new
one for each escaped string.