fix too wide layout spacing
do not write control chars in XML