Currently, convert_data() works for str, bytes, list, and OrderedDict. This can lead to potentially dangerous situations when wrong data is nested inside other unsupported types and passed without conversion or if it has one of not supported types and is silently dropped by convert_data().
We should improve conversion to support at least all stdtypes (and subclasses as a result).