Explicitly encode rendered Jinja templates to UTF8

IIRC this fixes the bug encountered with certain Pythons during the tutorial.