Do not StringRef a temporary substr! Fixes valgrind report from Gerri.