Support unicode characters for id and class selectors

`qr/^([#.]?)([a-z0-9\\*_-]*)((\|)([a-z0-9\\*_-]*))?/i` doesn't match unicode characters like `.小飼弾`.
I changed it to `qr/^([#.]?)([^\s'"#.\/:@,=~>()\[\]|]*)((\|)([a-z0-9\\*_-]*))?/i`.