Strip out non-allowed search characters.

Closes #10