Undo url-mangling when applying patches