Improve Atom feed creation (Fixes #2081)