Handle invalid character setting

enhanced error handling in loading a character setting file.