Error handling compatible with Python 3

If pdflatex does not compile, the error thrown by tikz2pdf must be
decoded to an str type in Python 3.