escape dash in regexp.escapeString, fixes #17861