Hardening/619 escaped output

### Description
The responses now HTML-encode the values and an attempt has been made to avoid responding with text not controlled by ourselves. Also, bad paths etc have been removed from the responses.
I think I also touch this recently in one of my PRs... probably we will have some merging conflict, but it should be easyly solvable.

NTC