Merge an express-style path string with data to create a valid path.