Handle and prevent invalid repo ID. Validate node ID format. (fixes #286)