forbid '-' as the first character
added support for '.' in file/directory names but not as the first character