Fixing charset issue in template