fixed stanzaLen & xmlEncode