Fix loading of .obj and .dat files.