Set log file encoding.
Caught otherwise hidden exceptions in scheduling routine.