fix cxx warning: deprecated conversion from string constant to ‘char*’