Limits the length of generated name for the default naming strategy

fixes #2