escaping german umlaute, when rendering into html

This pull request escapes german-umlaute like ö,ä,ü, ...
This is just tested under linux; not sure if the characters cause problems under other platforms (encoding).
So maybe this shouldn't be merged; treat it as pointer for those who face similar problems.