Handle incomplete 'data' event from stdout event

stdout 'data' eventHandler was always assuming `Encoding: task x of
x....`  but sometimes this was not the case in windows 7.

Now we inspect the data stream for a complete line of data
`\rEncoding: task x of x .....\r`
merging #2