Fix log handling of unicode output to syslog in modules