On Thursday, December 18, 2025, Igor Korot <ikorot01@gmail.com> wrote:

Using my setup above and assumng my Win locale is en_US.UTF8

This seems like an incorrect assumption. The server is expecting UTF8 yet you are passing it data that is not valid UTF8 bytes.  I infer thus your Windows encoding is thus not UTF8.

Suggest you make an even smaller, simpler, and self-contained reproducer and include how you are executing the code.  You’ve not provided sufficient detail for someone else to debug your problem.

David J.