Bug 1006582 - Set output encoding in case of file redirects; r=glandium