Sane handling of writing to response object