replaces whitespace in property names to avoid problems with javascript
later.