use page.charset to determine encoding