added a to_str mehtod. catches the exceptio __toString mehodds

git-svn-id: file:///var/www/svn/anahita/anahita/branches/search@17097 a933e228-e664-4d3f-8241-49479697c698