Web server adding data, characters. Automation is great.
Web server outputting what you expect, plus some extra?
Check your configs for your web application, make sure it’s clean. That’s what happened to me.
I can relate, been there. Customer didn’t have any configuration management, and always had random characters appended to web server output, or images. Random, meaning, what someone manually put in there.
Automation is great.