Fixed character class escaping