Improved the regex for escaping the % characters.
I put this against 1.5 as that's the earliest branch I could find this in (the contributions guide said to do this), and it still persists in master. The changelog file has moved location in master, so if you want me to change anything let me know. :)
Fixes #1348: add more robust handling for % format chars in remote pa…
…th when using sftp get()
Had to cherry-pick due to changelog moving between 1.5 and 1.10, but this is merged to 1.10 and up now. (Release soon.) EDIT: yea github still doesn't see those, not surprising. It's e2ca3fd. (I tweaked the changelog entry too.)