Escape URI reserved characters in relativePath when returning Resource URLs.

Escapes reserved characters in RFC 3986 section 2.2.

CouchDesignDocument and CouchQuery overrides the URL generation to handle '_design/' and '_view/' prefixes in relativePath that needs to be left unescaped.