First had to find out about .toUtf8().data(). This is how it's done at other places as well.
.toUtf8().data()