put_str
put_str(val, &buf, &bufsize, &needed);
put_str(bio, frame_data.reason, frame_data.reason_len);