Case const string into no-const.

This fixes "deprecated conversion from string constant to ‘char*’ [-Werror=write-strings]" warning

This closes bug #1499