Write to stdout and encode as UTF-8