Bertini type theorems for vector bundles in any characteristic