tconvert: improved determination of input type