Optimize d3.interpolateString.