Fix SyslogHandler test to properly handle character encoding