fix incorrect quote trimming for url with prefix