Fix call to ofstream constructor

Officially, the ofstream constructor takes a const char * for the file
name, not a string reference.  Interestingly, both Linux and apparently
Windows have overloaded constructors that accept a string.  Mac's don't,
though.

Refs #7769
Merge branch 'feature/7769_NewRemoteAPI' into develop