Fix segfault from CStdString conversions