fix issue with unicode and nbsp