HTML sanitisation for Kibana link

I am not sure if this works, but it might be worth a try, you could try to URL encode that part using the mustache {{#url}} helper