Add Strings.substring() that handles short strings.
Handle node id shorter than the usual randomBase64UUID.

Fixes #4572 (half of it...)