Replace dots with underscores in event handler names. Dots are processed in special way in jQuery on/off.
Set id in unescaped version.
Merge pull request #2324 from tunguski/master

Fix for dots in id