Simplifying IO#read

per feedback from @timfel