OCIOYaml: Fixed use of freed const char * on RHS of assignments - issue365

Inside OCIOYaml.cpp, there are a few places where the result of std::string::c_str() are stored in a const char *, but the string itself is on the right hand side of the assignment, meaning that it is instantly destructed and the pointer is now looking at freed memory.

This patch fixes these issues.