Fix encoding issues for getResponseHeader()

Fixes [getresponseheader-special-characters.htm](https://github.com/w3c/web-platform-tests/blob/master/XMLHttpRequest/getresponseheader-special-characters.htm)

h/t @SimonSapin

Blocks #2525