Fixes #203, support logging std::wstring.
Fix lints.