Change type of boost::format input from std::string to C string
Fix malloc_error on some systems caused by boost::format input type