buffer streams that cannot be rewound in fscanf; fixes #1436