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.
Fixed in 92fa39525c6e65b9b778b164e7d4a5d0ad9e6206 (I guess).