Escape URIs to be RFC3986-compliant. For example, it is quite common to have single quotes at the end of Haskell record names.