Perhaps I was confused about how to specify "until end of line" in this case since there are no new-line characters in that string. So I used \0 and that works on at least OS X and Windows. However, happy to hear this works for you, it also works for me and I have made the change in r19736.