pub fn decode_dirty(hex_str: &str) -> Vec<u8>
Converts a hex string to a vector of bytes. It ignores any characters that are not valid hex digits.