modify function - get_file

fix encoding problem