Extract the filename tokenizer into a separate file.