this fails on php 5.3 and 5.4 as &nbsp; decodes to &#xA0;