Fix character conversion warning and comment typos.