Avoid constructing std::strings unless pass debugging is ON.