Add c string handling facilities

These allow copying std::string to cstring