use map-stream to transform data in streams
fix set encoding when forking stdout
Merge pull request #11 from aju/master

Use map-stream to transform streams - code refactor