escape dash in regexp.escapeString, fixes #17861

Fixes https://bugs.dojotoolkit.org/ticket/17861.  If there are no objections I'll check this in.