Make logging unicode-safe