Rescue Errno::EIO errors on some platforms

The `IO#eof?` method raises an `Errno::EIO` on some platforms. This rescues
from that error, doing nothing when it happens, which is what it should do.