Make sure standard handles have proper encoding

And we only need one .open