Refactoring usage of $url_escape_re into a function named url_escape_url_path_and_fn.