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!
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events