Convert UTF-8 with BOM to UTF-8 with no BOM in Python,s = u.encode('utf-8')