Replace usage of the now removed std::io.

CC: @kmcallister