Validate profile names to prevent profiles with illegal characters from getting created.