add method charset(), redirect() to XiuMai::Resource