replace nbsp chars with a space before parsing