Python json.dumps ensure_ascii Made My Claude Prompts 2.3x Bigger A developer running the interview-practice app Preterview traced a 2.3x token inflation in Korean-language scoring prompts to Python's json.dumps default of ensure_ascii=True, which serialized each Hangul syllable as a six-character \uXXXX escape inside the prompt text. Replaying 500 stored scoring calls, the developer confirmed the escapes came from the app's own prompt builder rather than the Anthropic SDK, and fixed it with ensure_ascii=False plus a test that fails if \u appears in any rendered prompt. A 20-minute Korean voice session should cost about the same to score as a 20-minute English one. Mine cost more than twice as much, and for three months I assumed that was just "how Korean tokenizes." It wasn't. It was one default argument: json.dumps with ensure ascii=True . Every Hangul syllable in my transcripts was reaching Claude as a six-character \uXXXX escape, and I was paying for every one of those characters as tokens. This post is the autopsy: how I found it, what I measured across 500 replayed scoring calls, and the two smaller bugs the fix caused. json.dumps defaults to ensure ascii=True \uXXXX . One Korean syllable becomes 6 ASCII characters. json.dumps obj, ensure ascii=False , plus a test that fails if \u appears in any rendered prompt. The escapes came from my own prompt builder, not from the Anthropic SDK. The scoring step takes a list of interview turns and builds a user message like this: php import json def build scoring prompt turns: list dict , rubric: str - str: return f"{rubric}\n\n" f"