[*] CORE: original search_query assign to .tpl

Avoid problems with special characters for eg. in polish language like ąźćłó etc.
Merge pull request #1101 from kpodemski/patch-1

[*] CORE: original search_query assign to .tpl