I had same issue while editing files using PSPad 5.0.6 build 589 (previous stable release). There were a lot of garbage characters I've treated as memory corruption/dangling pointers. So problem is not related to encodings. Will try next stable release/beta, let's see.
-- <https://forum.pspad.com/read.php?2,77347,78191> PSPad freeware editor https://www.pspad.com