Change most places we control (i.e not helper libs) to use SGPath to represent a path, instead of using std::string. Extend SGPath API to explicitly expose the path in either UTF-8 or the system 8-bit encoding.