Content server: Fix search query not being fully sanitized in results page

Fixes #1205385 [Private bug](https://bugs.launchpad.net/calibre/+bug/1205385)