Fix handling of URL fragments.

Encode and decode URL fragments in iri_to_uri() and uri_to_iri().
Test anchor encoding/decoding in test_iri_support.
Merge pull request #260 from vickenty/patch-1

Fix handling of URL fragments.