Fixes #6 Searching through notes that includes unicode characters.

Fixes an internal error 500 when searching through notes that includes unicode characters.