support utf encoding detection, process utf file