Add encoding to `canvas.toSVG(options)`
Add unit tests for canvas.toSVG
Merge pull request #812 from Kienz/patch-1

Add encoding to `canvas.toSVG(options)` - Closes #810