The Hook
Point an autonomous coding agent at a global enterprise monorepo containing Japanese, Korean, Cyrillic, or accented file paths, and a single strict-ASCII assumption inside Python's httpx.Headers constructor will crash the agent's file-reading loop with a UnicodeEncodeError before the LLM ever sees a line of code.
The Deep Dive
Historically, RFC 7230 and RFC 9110 restricted HTTP header field values to visible US-ASCII octets ( ISO-8859-1 obs-text), which led Python's httpx library (specifically httpx 0.28.1 ) to default httpx.Headers(..., encoding="ascii") when constructing header objects from raw byte tuples or dictionaries.…