Fixed logging message
Fixed bug in logging utf-8 strings