This is so frustrating. I have a bug to report and all I get after filling in a form is a link to the standard documentation and the community. Apparently they are not interested. "Talk to the hand". Anyway, if someone is looking, here's the problem.
You do not handle Unicode properly, you are hacking into the raw bytes of UTF-8 looking for ASCII characters. I experienced this in Confluence before and just now in Jira. Look at this review text:
This will display briefly and then, apparently in a crude post-processing effort, be turned into this:
It looks like someone is scanning the raw bytes for occurrences of ASCII characters ":(". Please get your encoding/decoding act together!
Recommended Learning For You
Level up your skills with Atlassian learning
Learning Path
Improve user experience across Jira with global settings
Learn how to set up and configure a Jira site, manage Jira permissions, and configure Jira apps and integrations.
Learning Path
Streamline projects across Jira with shared configurations
Build Jira work items with reusable configurations called schemes, and reduce administrative work with automation.
Learning Path
Become an effective Jira software project admin
Set up software projects and configure tools and agile boards to meet your team's needs.