Fix crash when searching multi-byte strings.

Fixes issue #89