Refs #8962 ofstream constructor needed c strings

the mac buildserver fialed due to my ofstream constructors being passed std::strings, when they wanted c strings.