SVG Go is a node based utility for optimizing SVG graphic files.
$ npm install -g svgo
CD into the location of the SVG graphic and run the default command to clean up the syntax.
$ svgo test.svg test.min.svg
It is also possible to create the SVG for use in data elements with the following command.
$ svgo logo.svg --datauri=base64