Simple utility for URI encoding.