Remove unnecessary calls to boost::str().