templates/topic.handlebars: encode URL

Added a file called template_helpers.js which has one helper defined inside it.

CC @russellholt @MariagraziaAlastra @jdorweiler