Text files encoding analyzer and converter