added some base64 encoding into various js areas where unicode or other chars might be present, thus brekaing things