Removed trailing whitespace
Ignore attributes with illegal chars in name (fixes #23)

This is neccesary because method "DOMElement::setAttribute"
throws exception for wrong names so DOM elements
can't contain these attributes.
Merge pull request #29 from miso-belica/fix-wrong-attr-names

Ignore attributes with illegal characters in name