Make putc() and putchar() safe functions