Corrected numerous file descriptor regressions.

Astonishingly, print_whitespace_if_needed() still remains felonious.
We've documented but have yet to implement the requisite fix, which
already seems needlessly burdensome. *sigh*