qttools_core: fix encoding of log messages