fix illegal initialisation of a const string& from a const char*