Make sure XMLHttpRequest.responseText is always a string

See http://www.w3.org/TR/XMLHttpRequest2/#text-response-entity-body
Simplify responseText fix and handle empty response bodies correctly
Merge pull request #466 from denisw/master

Make sure XMLHttpRequest#responseText is always a string