Make sure XMLHttpRequest.responseText is always a string

See http://www.w3.org/TR/XMLHttpRequest2/#text-response-entity-body