sniff utf for file open