If someone is sprint jumping at you with a melee weapon and you have a bow, only shoot once (unless they are really far away). If you hit them, then it might be safe to shoot again, but if you miss, switch to your sword, trying to charge up again will only give them the first hit in melee range. If you have no melee weapon, spam shoot without charging, though you're pretty much screwed at that point.