Searching % gives an error while trying to load page

If you search for anything with % in it and hit Enter, you get an error page.

4 « J'aime »

Submitted a fix here but I’m still having trouble with writing the tests

https://github.com/discourse/discourse/pull/3607

2 « J'aime »

@sam lets close this? :smile:

1 « J'aime »