Fix printing non-terminated strings in devlist XML.

MFC after:	1 week