Fix undefined code error since the function does not contain such variable
Fix issue #8 Accented characters were converting to upper case when capitalize modifier is used.

\W is Matches any character that is not a word character from the basic Latin alphabet. Equivalent to [^A-Za-z0-9_].

Support for internationalization in JavaScript's RegExp is virtually nonexistent.

Convert \W to its equivalent with including accented chars

Reference:
http://compgroups.net/comp.lang.javascript/regex-with-accents/190205
http://stackoverflow.com/questions/5436824/matching-accented-characters-with-javascript-regexes
https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/RegExp#character-sets

Issue raised: https://github.com/umakantp/jsmart/issues/8