Proper JSON encoding for search requests

This commit introduces automatic encoding of search keywords as JSON
strings. Special characters will not break the search anymore.

Signed-off-by: Lars Kiesow <lkiesow@uos.de>