Fixing stdout so it will properly handle UTF8