More powerful replacer for built-in Angular $cookieStore (https://github.com/angular/angular.js/issues/950)