Fixed some problems with unicode
Treat file index as a binary file when working with it.