Added support for appending xml files with UTF-8 BOMs