closed #2586: The utf8 response in XmlHttpRequest are mess codes.

Also, formatting codes with best C++ practice, ResponseType is enum class now.