Smart crawl can't cope with & symbols in sitemaps

The sitemaps created is rejected by search engines as not valid when it contains lines with ampersands in.