Encode and decode name fields
Remove debug line