Fixes #1348: handle % chars in get() in a better way #1361
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. :)