Crash when Deserializing TArray into Json

Its a simple reinterpret_cast, just the one line essentially:

FString ANetworkPlayerController::StringFromBinaryArray(const TArray<uint8>& BinaryArray)
{
	//Create a string from a byte array!
	std::string cstr(reinterpret_cast<const char*>(BinaryArray.GetData()), BinaryArray.Num());
	return FString(cstr.c_str());
}

What’s the next stage? Is this something that can be fixed at my end?