make all file-handling functions/methods use to_c_str().with_ref().
Merge pull request #102 from lifthrasiir/to_c_str

Make all file-handling functions/methods use to_c_str().with_ref().