use safe_unicode for indexer (fixes #104) and pep8