Fixed Scanner.from_filename()