Convert SVG <polyline> to <path> so they can be animated with D3 etc.