Support binary standard_input in ssh_io

This patch updates the `ssh_io` module to also be able to handle
the cases where the standard_io device is set to binary, which causes
binaries to be returned when reading from the device.