Fix BufferedIO#read not working after slices refactor