Fix position backtracking in `FileInput`.