Allow dashes in character classes when they must be interpreted literally, i.e. in the first or last position.