Revert "file loading fix"

This reverts commit 233f1e8b87089711691de76befc6d2bb4f0d362f.
fix encoding bug