Renaming parameter name from char to character

Some minifieng engines can not work due to char is an reserved word.