JSONUtils.quote handling of function is harmful.

It's crazy that the quote method tries to second-guess what the string
looks like then does something entirely different.