chunk a stream by a short sequence of bytes