Seven-time champion Novak Djokovic overcame a scare late in the second set to beat big-serving Valentin Vacherot in the first round of the Paris Masters.