indexer: Handle (non-)unicode properly