You want some XML writer, of which there are many. And, yes, they will work with Latin-1. Another option is to use something like Unicode::String.
We are the carpenters and bricklayers of the Information Age.
Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.
Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.