first stab at encoding for log files