haskell/network — pull request #51 by singpolyma (2012-08-18 16:19:13+00:00)
Title: Escape URI components, wuth UTF8 support

Adds a predicate for characters which should be escaped in URI
components (such as path components or query strings) instead of just in
URIs generally.

Additionally: Unicode characters were being mal-encoded (especially
asian characters, which were being output with more than two digits,
which is malformed). Use UTF8 to encode characters before escaping.

Tests added for these cases.