netbase: Use .data() instead of .c_str() on binary string