fixed some errors getting encoding files