not sure why the last bit was added? its causing problematic strings to pass through. but the removed bits were not part of the "inspiration" on http://stackoverflow.com/questions/397250/unicode-regex-invalid-xml-characters/961504#961504