Code cleanup
Encode unicode to utf-8 before printing it.