Length of dump text and length field in API do not match (even after UF8 encoding) due to inconsistent line break characters and beginning/ending whitespace.
Note that this results in false negatives when detecting identity reverts
Current workaround:
Strip whitespace from the beginning/end and replace all "\r\n" (windows linebreak) with "\n". With this approach, you get acceptable (99%), but still imperfect consistency between API and dump.
Version: unspecified
Severity: minor