h2-13 refactor without okio. totally untested.