fixed the internal 500 error caused by searching '#' and '&' special chars