Fixed selector for element id which contains dot in it. (for jquery > 1.9.1)

hey, my client is using a html markup from boomworks and I found there might be an issue in it. 
I found in some case if the id attribute has a dot (e.g. &lt;div id="a.b"&gt;sample&lt;/div&gt;), then that "label[for=a.b]" selector will throw an error: 
Error: Syntax error, unrecognized expression: label[for=a.b]

I haven't tested on all the jquery version however I found it works on 1.6.1, but does not work with jquery > 1.9.1. 

FYI. thanks. 

Mickey