Fix trailing '-' in URI's and slugs.
Check if it's actually a \DateTime instance.