-Changed readFile encoding format to fix some incompatibility issues