Ensure that we're writing unicode in svg2pdf preprocessor

Fix Python 2 test failures with Inkscape installed.