Make stdout output UTF-8, preventing "'ascii' codec can't encode" errors

Addresses issue #3