Error with automatic importation of repository whose name contains specific characters

Summary

Automatic importation of repository whose name contains specific characters fails, without any other way than renaming it from source, copy it under other name or clone it before…

Steps to reproduce

Import for example a BitBucket repository with a - will fail with this error message:

Path can contain only letters, digits, '_', '-' and '.'. Cannot start with '-', end in '.git' or end in '.atom'

By the way, this error message shows HTML entities : Path can contain only letters, digits, '_', '-' and '.'. Cannot start with '-', end in '.git' or end in '.atom'

This is rather strange because the message itselfs says hyphen is valid…

Possible fixes

Maybe add more valid characters for external repository names, and why not allow almost all Unicode letters?