fix wrong conversion on windows from QString to char*