Use boost::string_ref to replace const char* and const std::string& whenever appropriate