allow uppercase characters in namespace and repository name

Fixes #5682

Note: This partially unwinds 5867f9e7614e5761fdee1f5b6a607ef4f8311d7f

Docker-DCO-1.1-Signed-off-by: Paul Morgan <jumanjiman@gmail.com> (github: jumanjiman)