Use UTF-8 for encoding

Also correct log statements