Ensure status class has spaces replaced to avoid unintended css class pr...

...oblems. Fixes #953.