CreateFileStore accepts a std::string instead of a const char*.
Cleaned up code.