Fixes invalid conversion from wxStringConst, to std::string under gcc-4-8

Probably a bit of hack - I don't understand why this won't be done implicitly. Would appreciate someone explaining that, if they don't mind. Should be win-tested, too.