Refactoring PDF find controller and implementing page content and query normalization

Fixes #1399 and supersedes #4947.

For the unicode codes, see http://unicode-table.com.