replaced &str with ToCStr for Request.write and Request.get_param