Remove spaces from CSS classname

Applies the same fix as shortClassName did, replacing spaces with "_"