Add charset to document