Convert a string to a unique_ptr<char[]>.
unique_ptr<char[]>
Used to work around non-const correctness of CFitsIO: when a function expects a char * instead of a const char *, string::c_str() cannot be used. To call some function f(char *) with a string s, do:
char *
const char *
string::c_str()
f(char *)
s