fixing gcc issue with using a string as a argument to fstream.open()