fix afpfs-ng eating % signs in URLs

@Memphiz to review.  Should be reasonably straight forward, but could do with some sanity testing (i.e. this was done in the blind).

Will look to see if an upstream exists and push 'em a patch.