fix and simplify doCategorySearch
fix and simplify doCategorySearch

No longer search for all possible category strings but simply for the
selected category at the beginning, at the end or in the middle of the
category string. Also encode ( and ) by hand, which is not included by
encodeURIComponent.

jobisoft/CategoryManager,jobisoft/CategoryManager