replace all occurrences of &nbsp; not just the first one

hoping this fixes http://manage.dimagi.com/default.asp?120829
built file
Merge pull request #221 from dimagi/nbsp-fix

replace all occurrences of &nbsp; not just the first one