do not redifine String::encodeHTML if already exists
more tests. allow spaces in any place in tags. some cleanup