Handle lines in console helpers when standard_input is set to binary

There are no existing tests for the current functionality (only a couple console helpers are tested), so I haven't added a new one. I have guaranteed this works locally though.