changed Template to use System.IO.UTF8