fixed up html entity issue by using utf-8 compatible base64 encoding