How to write utf-8 string to console?