Rename encoder to RpcJsonEncoder