Fix build against Qt not having std::string support

Change "toStdString().c_str()" into "toLatin1()"