Tronsformed C-style char* and stdio calls into C++ std::string and std::iostream