This %-encodes the given URL part and returns the escaped version in allocated memory, which the caller must free when it is done.
part |
a URL part |
escape_extra |
additional characters beyond " \"%#<>{}|\^[]`" to escape (or null) |
the encoded string |