Added exception handling for non-hex bytes