Escape most non-ASCII characters until we ditch JSON for good.