BZ-1024290: implemented control for strange characters in repository names.
(cherry-picked from 60d32a3)