Fixed pipes from parent to child process:

- Avoid conversion from byte stream to char reader
- Flushing after every read to avoid introducing unpredictable delays