Fix a typo: this.character instead of this.char

Closes GH-824.