Handle attributes containing urls with character references.

Currently hrefs in the description are mangled if their scheme contains character references.  These changes improve their handling.

Motivated by: https://github.com/HackerNews/HN/issues/2