Nil slices are getting allocated, which is incorrect and changes behavior in some cases. []byte(nil) -> []byte(nil)