Fix Atom categories, post IDs

Also specify encoding & remove unused namespaces