Url-encode some href attributes. Fixes #3