Optimal Renormalization-Group Improvement of R(s) via the Method of Characteristics