HH-34951 fix UnicodeEncodeError in graylog bulk handler
HH-34951 PEP8