unknown encoding error, because of wrong file definition 

Fix : encoding = theMagic.from_buffer(src)

Issue : unknown encoding: binary:0:Message: unknown ecoding error while running tsvtojson