Add bytecheck to checkEncoding

Check for byte invalid in ISO-8859-1