Fixed two jQuery plugin issues.

Fixed bug where jQuery plugin would break attr function in jQuery 1.7.2.
Fixed so encoding option gets applied when using jQuery val() or attr() to
extract the contents.
Merge pull request #12 from izak/3.4.7-plone

Fixed two jQuery plugin issues.