encodeURI vs. encodeURIComponent

A quick comparison and reference for the subtle difference between these functions.