better error handling for xor_byte_strings.