Fix bug loading/saving .gif files with Unicode file names