as_c_str becomes a method