[core] Encode the log with UTF-8 (and also use "with-as").
Merge pull request #588 from xZise/utf8-log

Encode the log with UTF-8 (and also use "with-as");