Changed string to c_str() in transform file opener.