convert log data in ltsv format to tsv (with header) format, or vice versa