legacy: indexer recjson value fix

* Prevents BibIndex to crash when indexing `recjson` values.
  (closes #2285)

* Fixes problem with unicode strings.

Signed-off-by: Esteban J. G. Gabancho <esteban.gabancho@gmail.com>