out_canonical: fix problem when len mod 16 is 0