added QuotedStrJSON() function and fixed FormatUTF8() to produce valid escaped JSON string when JSONFormat optional parameter is TRUE