Validate port names, fixes #256