make [...-] in character classes an error instead of silent fail