normalize text nodes before implicitly translating them as a whole

before translation nodes were created word by word, which does not work very well for most languages

also note that leading and trailing white space is preserved