Make FromFileContent take char * instead of boost::filesystem

This removes dependency on boost/filesystem/fstream.hpp which requires
boost init code.