generate: properly escape pointer paths