docs: def _get_data_format_2and4(raw):
          """
          Validate that data is from RuuviTag and is Data Format 2 or 4. Convert hexadcimal data to string.
          Encoded data part is after ruu.vi/# or r/
  
          Returns:
              string: Encoded sensor data
          """
          try:
              # TODO: Fix conversion so convered data will show https://ruu.vi/# and htts://r/
              # Now it has e.g. [Non_ASCII characters]ruu.vi/#AjwYAMFc
              base16_split = [raw[i:i + 2] for i in range(0, len(raw), 2)]
              selected_hexs = filter(lambda x: int(x, 16) < 128, base16_split)
              characters = [chr(int(c, 16)) for c in selected_hexs]
              data = ''.join(characters)
  
              # take only part after ruu.vi/# or r/
              index = data.find('ruu.vi/#')
              if index > -1:
                  return data[(index + 8):]
              else:
                  index = data.find('r/')
                  if index > -1:
                      return data[(index + 2):]
                  return None
          except:
              return None