Adding charset header and fixing issue in http response that was always sending 404 header instead of whatever was specified.