fixed araqne/issue#420. fixed write bom when enable bom option.
Merge branch 'master' of github.com:araqne/logdb