add encoding for file read