detect and remove utf-8 bom