added option to disable strip BOM