new api
Use explicit encoding in open()