convert utf-8 with bom to utf-8 with no bom in python,s = u.encode('utf-8')