Changed return type of hpack_encode