Gold ends near 1-year high on North Korea jitters