Clean the output log to remove ^M characters