Support specifying encoding in configuration

We now support specifying the encoding (currently only 'iso-8859-1' is
'supported') in the configuration - this allows as to use the Standard
template, but vary the encoding based on the whois server
Merge remote-tracking branch 'origin/new_templates'