Fix indexing

* Fix indexing not utf-8 files