Use bytes length for content-length instead of string length