$chr(32) is the international ascii code for the space character, the same thing you get by pressing the space bar.
$chr(160) while in most fonts looks like the same character, it is not the same character and may not be interpreted the same.