fixed encoding issue

This fixes Issue #1.

On my machine, `python examples/cube.py` and `python2 examples/cube.py` both complete successfully (and make `cube.png`). That's Python version 2.7 and 3.4.