replace dynamic url bits before they are parsed