fix 'Range out of order in character class' caused by include square
brackets in item