Script: Add support for UTF-8 cm_caf.xml creation

TODO: Make other file operations UTF-8 supported