fixing crash when escaped double quotes enclose the url

This fixes the issue of an escaped quote being at the beginning or end of the url, which throws a URI parse error.