Add IO:putc method