If you replace outlets in the kitchen, bathroom, garage, or anywhere moisture may be present, use a GFIC outlet (the kind with the tiny circuit breaker built in) (nothing different about installing it)
If you still have 2 prong outlets, replace them with 3 prong (grounded outlets) while your at it.
It is a lot more work, but you end up with a much safer and more functional outlet.
You have to climb under the house and route a single plain wire up to the outlet box and attach to the ground screw on the new outlet box, and then clamp the wire to the nearest cold water pipe on the other end (under the house)
The other two wires just attach to the new outlet exactly where the old one was.
The only hard part is lining up the wire with the existing hole. It probably requires drilling a small hole exactly under the outlet, which requires very precise measurements. It can be somewhat aggravating. If possible, remove both the outlet and the box, so a helper can look down from in the house and help guide the person in the crawl space. If on a 2nd floor, and/or wires are in the attic, the same can be done from the top, in which case join the ground wire with any existing ground wires up there (green or bare copper)