fixes for log file not being created in unicode, poor handling of
non-unicode in the log file, and non-english date abbreviations in the
log file.