Fixes for loading text files.