Change the treatment of stdin and stdout to allow binary data