Open STDIO streams in text mode
Redirect STDERR as well