Improve CLI search method

Better handle unicode search values. Also escape double quotes in order
to correctly handle searching tags values.