lint: javascript: don't need to re-encode for ascii or utf-8

(integrated from master branch change 3fd73c2 by Todd Whiteman <toddw@activestate.com>)