core/byteio: check for end boundary in BoundedFileReader reads