c_buffer_from_obj for bytes