fix utf8 encode for indexing
die if mbstring is not installed
Merge pull request #25 from au-research/utf8fix

fix utf8 encode for indexing