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

please check code with flake8 (`E231 missing whitespace after ','`)