fix c string casting
Fixed missing fixes to C string casting