added rewrite_urls function since it was removed from tinytinyrss