Fix type `std::io::IoError` does not implement any method in scope named `to_str`

`IoError` implements `Show`, so it can be formatted directly.