transmit payload segment in binary by putting $fh and STDIN into binmode