Fixed encoding for log viewer