refactor duplicated code

-re-use the character escaping code when serializing strings
-uncomment lines that were accidentally commented in Serbench
-TODOs for the sys.errors in JsonAST. those need to go away