fix encoding issue when checking answers