filter out the \0 character in streaming.