Revert "Partly revert https://github.com/ivaynberg/select2/pull/1850 - don't escape dashes."

This reverts commit 12b183097be55a305e8a36f2136fd4b39221fc84.