Use strlen in CString::len
auto merge of #18203 : mahkoh/rust/cstring, r=thestinger

This is about 20x faster on my machine.