Don't UTF-8 encode alert messages, as the javascript alert function does not parse html entities and we're (for now) required to send the raw text without html entities in this case.