Gold extends gains, up $21.70, or 1.8%, to $1,217.80 an ounce