Revert "Use the correct control header prefix"

This reverts commit 8e2d75f32206ab012f29eced6ca19579fbf206aa.
Revert "Do not write negative int"

This reverts commit 5888f12c1b1e9421a1f78a1e693b61b6ca1c756a.
Fix length writing