Encode relevant symbols in path