Improve CLI search method

Better handle unicode search values. Also escape double quotes in order
to correctly handle searching tags values.
Merge pull request #1787 from elyezer/improve-cli-search

Improve CLI search method