Tokenizer for paths