server: Added @Encode() to Todo.add(), so validation errors are encoded properly.