use toAscii() to return a QByteBuffer from QString