refactor travis script, add a variable for the utf8 check