improved XML creation: encoding set to UTF-8