Test for null buffer in CString.len()/.iter() and fail

Also change .as_str() to fail on null buffer.