Cast a uchar* arg to char* for write_buf().