logger - remove invalid UTF-8 characters to avoid crash (bnc#876459)

- 3.1.18