added new versions of appendData for QString and QByteArray