Fixed bug that response writer not set charset