Replace &nbsp; entities when converting to text