Added restrict on write_cstr
Added utf8 data validation for rope_insert