First steps towards #33 - refactor encoding detection into etllib.py and leverage in tsvtojson.py