Output UTF8 by default

Error messages were generated when outputting to a console whose default encoding is not UTF8. This was easy to notice if your name has non-ASCII characters (like the "ă" in my name).

This change makes the script write UTF8 to stdout by default. The text will appear slightly garbled if the default encoding is not UTF8 (most famously, in the Windows Console), but at least it won't crash.