Proper load files and set encoding.