Fix encoding for pipe based socket.
Fix encoding for pipe based socket.

Should fix #989.

rbevers/fitnesse,jdufner/fitnesse,amolenaar/fitnesse,jdufner/fitnesse,amolenaar/fitnesse,rbevers/fitnesse,amolenaar/fitnesse,rbevers/fitnesse,jdufner/fitnesse