Update perl template to support UTF-8.