Coco Gauff overcame some shaky serving to beat Tereza Valentova and reach the third round at the French Open.