force encode the log file with utf-8 so it doesnt explode when encountering an invalid utf-8 character in the log