XML header "encoding" attribute fixed to respect actual client charset