added utf8 support to logging