XWIKI-10207: XML files in XAR should contains explicit encoding information
XWIKI-10206: Most package.xml properties don't end up in the XAR package.xml

(cherry picked from commit 06a41866f94a8e13f3d6cbbd979d4698c4cbdc95)