Get rid of the std::string usage in metadata and directly use CFString and the accompanying OS X string encoding functions.