jsonrpc: initialize null terminator