search-api: add util to escape uri, minor fix on indexer