Fix for rust/master IO library changes

This is a tiny fix for the IO rework happening in rust's type system. The `read_to_end` method was moved from `ReaderUtil` to `Reader`.