fixed araqne/issue#402. fixed write bom when disable use bom option.