Make sure that the argument of str::from_c_str is always of the right type

Fixes #42