tokenize resource paths