Refactoring PDF find controller and implementing page content and query normalization

Fixes #1399 and supersedes #4947.

For the unicode numbers, you can refer to http://unicode-table.com.