Close #23429. Coerce `WSGIRequestHandler` log messages to `str`

would it be better to use `force_str`?