Encode title using UTF-8 before printing

This fixes #170 and closes #174.
Merge pull request #178 from PiRSquared17/patch-1

Encode title using UTF-8 before printing