Why do accordion heading links (href) have a space in them?

I’m running my html through a validation checker and getting the message:

So it’s not happy with a space between the accordion name and the .item-1 value. Can I ignore that error? Or should I overwrite it and include a %20 for the space?

Thanks