Added character validation to UID constructor and new test for the validation.

Signed-off-by: Dennis Nobel <d.nobel@external.telekom.de>