Issue #8795: logging: Backported trunk fix for SysLogHandler and Unicode.
Issue #8795: logging: Backported trunk fix for SysLogHandler and Unicode.

sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator