Encoding themeHandle variables in order to prevent XSS vulnerability.