support for nul separator and newline separator

since syslog uses newline as the default separator, tcp transport is not working