Stop using shared_ptr<char> as it triggered an error with electric fence in release mode under OSX.