base/json: Escape all the things we're supposed to so web browsers are happier with our json.

NOTE: This doesn't currently read in all the escape sequences. We just print them right.