Streaming parser and serialiser for IRC protocol data