LUCENE-5448: move two handy random string generators to _TestUtil.

Since these were private methods, this is a very low-impact change.