Handle UTF-8 characters in patches
Reading a patch with UTF-8 characters causes unicode errors in Python. This patch changes the file handle to binary mode and decodes the byte string back to a regular string right after.
Patch to test with: https://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git/plain/queue-5.0/sch_cake-use-tc_skb_protocol-helper-for-getting-packet-protocol.patch
Signed-off-by: Major Hayden major@redhat.com