set encoding to binmode for pipe
Merge pull request #13745 from nextgearcapital/master

set encoding for pipe to binary mode