Fix writing of XML CAF documents

The overflow() signature had been modified in OCE when fixing
compiler warnings, but this broke writing XML files.