Fixed log file encoding error

Quick and dirty fix for output log file encoding error