Improve QString to const char* conversion