Relax an overly zealous string check a bit.

This fixes a spurious failure in t/jvm/02-pipes.t.
Fix braino. FROGGS++ for spotting it.