redirect putc->fputc