As another update, I found that indexing a UTF-8 file is apparently actually possible when reading lines binary as bytes. So this may be one way to do it, but I am still wondering if anyone knows about a more “polished” or standard way to do this?