Update sitemap plugin to play nicely with modified metadata

modified is a string in pelican <= 3.3 and datetime > 3.3

Sitemap used to treat it as string.