Google Closure Compiler doesn't like 'char'

Variable "char" replaced by character, for compatibilty with Google Closure Compiler.
Issue #46