Fix string casting problem in rpcgen.cpp