Gabriel Obertan emerged from the shadows to fire Newcastle to their first Premier League victory of the season with his first goal for almost two years as they beat Leicester 1-0.