Cstr::from_bytes_with_nul needs input bytes null terminated. Current version does not include the last null byte, hence Cstr::from_bytes_with_nul will panic with error 'FromBytesWithNulError { kind: NotNulTerminated }'