Serialize a QName as CName by writing a namespace attribute if needed. The prefix is used as hint only.