Escape special chars when interpolating paths.