fix character encoding problem with localized datetime in log