fateserver/history: escape untrusted data

Fixes Cross-Site Script with:

http://fate.ffmpeg.org/history.cgi?slot="><script>alert(1)</script>

or equivalent.

Signed-off-by: Timothy Gu <timothygu99@gmail.com>