Allow local document charset to be specified