Added _bom variable to support UTF-8 BOM output