remove a superfluous and wrongly used variable for utf-8 check, thanks to harry