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

hoping this fixes http://manage.dimagi.com/default.asp?120829