WriteConsole: fix missing last character by using the proper std::string::assign() overload
Add an example using RINSIDE_CALLBACKS to capture console output