detect unicode encoding using bom.