Fixes https://github.com/sosedoff/xml-sitemap/issues/20