Fix encoding problems in GUI logs, fixes #290