debug: FileReader: fix rewinding after EOF