Fix for string conversion issue happening in Qt 4.