serialize character model attributes