[1.8.x] Fixed #22782 -- i18n attr to Sitemap class

It makes possible to have your sitemap in multiple languages when using
i18n in URLs
extra newline (one space between sections)