diff truncates content after \x01

If `diff` is passed content that has a \x01 or similar character (\x00 - \x19 causes the same behavior), any content after the \x01 is truncated. This problem was observed on a pending (now active) policy where the content would be truncated whenever changes were showing.