escape regexp special characters in assertUrlMatch