Updated to avoid of some inappropriate symbols in names of elements such as "\xa0" (non-breaking space).