Encode special characters in var links