Support writing UTF-8 output

Addresses 'CRITICAL:root:'ascii' codec can't encode character u'\xb5' in position
15: ordinal not in range(128)' error

Fixes #4