AngularJS filter for formatting URLs