Only alphanumeric characters and - and _ are allowed in the name field in dub.json/dub.sdl If the user attempts to enter anything else there should be a suggested fix to change the targetName and to replace the invalid name characters.