I happened to came across an issue in the joomla version 2.5.14 and it seems like this error was there in all previous versions.
To reproduce the error simply search a keyword with apostrophe(for eg L'Illustration ) in chrome.
This is however working fine in firefox. We need to change some code in the joomla core files to fix the issue unless and until joomla team fixes it in their latest release.
In the file libraries/joomla/environment/uri.php around line 191, comment these line
// Check for quotes in the URL to prevent injections through the Host header /*if ($theURI !== str_replace(array("'", '"', '<', '>'), '', $theURI)) { throw new InvalidArgumentException('Invalid URI detected.'); }*/
And add these lines
$theURI = str_replace(array("'", '"', '<', '>'), array("%27", "%22", "%3C", "%3E"), $theURI);