I have seen (on a few occasions) PNGs with a tEXt chunk that contains null bytes...
A popular but not well known example would be Minecraft: Legacy Console Edition's thumbnails, which stores world info alongside the image.
said thumbnails are written using libPNG

When trying to read the same file with lodepng, I only get the first string out of the entire chunk.

Would there be any way around this without forking and fixing it myself?