Make sure search strings get escaped.

Closes #12