im writing an indexer, but im having a problem because on some file, when i read gives this error Error 4: invalid UTF-8 sequence is there a way to fix it.