workaround for sbcl condition-class deficiencies
implement copy-stream with string destination for queries