fixed scan_for_uri to handle URIs followed by several exclamation marks