fixed 'UnicodeDecodeError' when bad-files opening