Add a null pointer check to CString::new

This also removes checks in other methods of `CString`