robustness

added nbsp handling and avoid script failures due to bad xml