fixed the bug on item search where the json code being sent to the server is incorrect when there is a slash or a double quote on the query