bugfix: error in `BdbIndexStore.fetch_term` masked by log encoding