Proposed fix for JENKINS-21609

If the depot path contains characters which might be interpreted as a range in
the regex syntax, the plugin fails to check out such a path correctly. This
attempts to fix this by escaping left and right brackets, and the dash
character.