use a transform stream, assuming that the first buffer will never be exactly one character for now