Fix for migration script allowing dashes in beginning of hostnames.