Write files in UTF-8 encoding

This fixes Unicode related problems and is the
default encoding for XML files anyway