When Pirates Caused the United States to Go to War