Fix normalize parameters

We shouldn't pass empty strings.