Reduce some of the problems with putchar/getchar from stdio.