Fix renaming repository when name contains invalid chars under settings
What does this MR do?
Keeps invalid projects suitable for use in URLs
Are there points in the code the reviewer needs to double check?
No.
Why was this MR needed?
500 internal error is displayed without these changes.
What are the relevant issue numbers?
Fixes #19538 (closed)
Screenshots (if relevant)
Does this MR meet the acceptance criteria?
-
CHANGELOG entry added -
Documentation created/updated -
API support added - Tests
-
Added for this feature/bug -
All builds are passing
-
-
Conform by the style guides -
Branch has no merge conflicts with master
(if you do - rebase it please) -
Squashed related commits together