AngularJS service for UTF-8 and Base64 Javascript Encoding