Fixed regex that removes cruft from SVG output. Added test. Fixes #31.