Fix remaining StringRef abuse.

This should fix the valgrind buildbot failure.