Transform stream that lets you peek the first line before deciding how to parse it