Encode indices as base64 for riak