Adding better support for .class and #id allowed chars.