fix filter astream writ and sync
impl filter output cache
impl charset filter
reimpl gstream filter