Fixed toSVG for text.