refactor(queryParams): extract safe URI logic
refactor(queryParams): extract safe URI logic

It also uses angular.lowercase() instead of
String.prototype.toLowerCase() as it handles non-strings better.

MartinSandstrom/angular-apimock,seriema/angular-apimock,MartinSandstrom/angular-apimock,seriema/angular-apimock