support more file encodings