Fix ranges in globbing
Fix ranges in globbing

Always escaping and discarding first character in a class is
not correct when it's part of a range, e.g. '[a-z]'.

mpeterv/luacheck,xpol/luacheck,kidaa/luacheck,mpeterv/luacheck,xpol/luacheck,xpol/luacheck,tst2005/luacheck,tst2005/luacheck,adan830/luacheck,kidaa/luacheck,adan830/luacheck,linuxmaniac/luacheck,mpeterv/luacheck,linuxmaniac/luacheck