Fix UTF-8 printing issues; see http://bugs.python.org/issue19846

Fixes #13

Applied to Python 2 also for consistency.

Thanks to @rspeer for pointing out the issue and a good source we can reference on it.