Charged kaon and proton production in B hadron decays