Remove spaces from template names.

This was causing problems with autotools.